import { createApp } from "vue";
import "./styles/global.scss"; // 全局样式
import { createPinia } from "pinia";
import "element-plus/dist/index.css"; // element-plus样式丢失
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import App from "./App.vue";
import * as directive from "./directive";
import './mock/index.js'

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(pinia);

// 自定义指令
for (let i in directive) {
  app.directive(i, directive[i]);
}

app.mount("#app");
